package com.daodway.designpattern.factorypattern.simple;

public class FruitCreator {
	   public FruitProduct createProduct(String type) {   
	        if ("A".equals(type)) {   
	            return new Apple();   
	        }   
	        if ("G".equals(type)) {   
	            return new Grape();   
	        } else  
	            return null;   
	    }   
}
